package com.covery.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ：txw
 * @description：
 * @modified By：
 * @version: 1.0
 * @since ：Created in 2020/5/24 0024 12:25
 */
@Component
@Data
@ConfigurationProperties(prefix = "init")
public class InitSetting {

    public static final String YES = "yes";
    /**
     * 任务间隔  2 second
     */
    private Integer timeInterval;
    /**
     * rightBakDirectory
     */
    private String copyToFilePath;
    /**
     * leftGameDirectory
     */
    private String originFilePath;
    /**
     * 保证删除后剩余的目录 > 1
     */
    private Integer removeLeftDirectory;
    /**
     *  是否单个存储,yes,no
     */
    private String copyOne;
    /**
     * 单个存储前缀
     */
    private String copyOneFileNamePrefix;

    /**
     * 回归后是否 备份,yes,no
     */
    private String beforeBak;
    /**
     * 目录格式化
     */
    private String dateFormat;
}
